This file provides information for replicating the results from: Jonathan Kastellec. 2010. "The Statistical Analysis of Judicial Decisions and Legal Rules with Classification Trees." Journal of Empirical Legal Studies.7(2):202-30.

DATA

The data used in the search and seizure cases, which is based on a dataset created by Jeffrey Segal, is in: "search_data_replication.dta"

The data used in the confession cases, which is based on a dataset created by Sara Benesh, is in: "confessions_data_replication.dta"

Note that both datasets are condensed versions of the original datasets. 

R CODE FOR ANALYSES IN PAPER

There are three R scripts that were used in the paper:

-- The simulation in Section 4: "replication_script_1_simulation.R"
-- Search and seizure cases: "replication_script_2_search_and_seizure.R"
-- Confession cases:"replication_script_3_confessions.R"

Note that the trees that appear in the paper were constructed in Microsoft Word.  Code to generate the trees in R is given in each script.  Figures 4,6, and 8 were generated directly in R--the code for each can be found in the respective scripts.



